//
//  ZYXSearchTopView.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/7.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXSearchTopView.h"

@implementation ZYXSearchTopView

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSearchImg:(UIImage *)searchImg {
    _searchImg = searchImg;
    UIImageView *searchImgView = [[UIImageView alloc] initWithImage:searchImg];
    _searchField.leftView = searchImgView;
    _searchField.leftViewMode = UITextFieldViewModeAlways;
}

@end
